home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / graphics / pstcol.sty < prev    next >
Text File  |  1997-03-07  |  2KB  |  71 lines

  1. %%
  2. %% This is file `pstcol.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% pstcol.dtx  (with options: `package')
  8. %% 
  9. %% pstcol.dtx Copyright (C) 1994--1996 David Carlisle
  10. %%
  11. %% This file is part of the Standard LaTeX `Graphics Bundle'.
  12. %%
  13. %% It should be distributed *unchanged* and together with all other
  14. %% files in the graphics bundle. The file 00readme.txt contains a list
  15. %% of all of these files.
  16. %%
  17. %% A modified version of this file may be distributed, but it should
  18. %% be distributed with a *different* name. Changed files must be
  19. %% distributed *together with a complete and unchanged* distribution
  20. %% of these files.
  21. %%
  22. \NeedsTeXFormat{LaTeX2e}
  23. \ProvidesPackage{pstcol}
  24.           [1996/10/28 v1.0  PSTricks color colompatibility (DPC)]
  25. %%%%%%%%%%%%%%%%%%
  26. \let\saved@gray\color@gray
  27. \RequirePackage{pstricks}
  28. \let\color@gray\saved@gray
  29. %%%%%%%%%%%%%%%%
  30. \DeclareOption*{\PassOptionsToPackage\CurrentOption{color}}
  31. \ProcessOptions
  32. \RequirePackage{color}
  33. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  34. \def\pst@getcolor#1#2{%
  35. \@ifundefined{\string\color@#1}%
  36. {\@pstrickserr{Color `#1' not defined}\@eha}%
  37.  {\edef#2{\expandafter\expandafter\expandafter
  38.          \c@lor@to@ps\csname\string\color @#1\endcsname\@@}}}
  39. \def\pst@usecolor#1{#1\space}
  40. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  41. \definecolor{darkgray}{gray}{.25}
  42. \definecolor{gray}{gray}{.5}
  43. \definecolor{lightgray}{gray}{.75}
  44. \definecolor{gradbegin}{rgb}{0,1,1}
  45. \definecolor{gradend}{rgb}{0,.1,.95}
  46. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  47. \psset@bordercolor{white}
  48. \psset@doublecolor{white}
  49. \psset@linecolor{black}
  50. \psset@fillcolor{white}
  51. \psset@hatchcolor{black}
  52. \psset@gridcolor{black}
  53. \psset@gridlabelcolor{black}
  54. \psset@shadowcolor{darkgray}
  55. \psset@subgridcolor{gray}
  56. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  57. \def\newgray#1{%
  58.   \definecolor{#1}{gray}}
  59. \def\newrgbcolor#1#2{%
  60.   \newrgbcolorx{#1}#2\@@}
  61. \def\newrgbcolorx#1#2 #3 #4\@@{%
  62.   \definecolor{#1}{rgb}{#2,#3,#4}}
  63. \def\newcmykcolor#1#2{%
  64.   \newcmykcolorx{#1}#2\@@}
  65. \def\newcmykcolorx#1#2 #3 #4 #5\@@{%
  66.   \definecolor{#1}{cmyk}{#2,#3,#4,#5}}
  67.  
  68. \endinput
  69. %%
  70. %% End of file `pstcol.sty'.
  71.